namespace PropertyExpression.ControllableQuery.Test
{
    public class NVarChar<T> where T: ILength
    {
        private readonly string value;

        public NVarChar(string value)
        {
            this.value = value;
        }

        public string Value
        {
            get { return value; }
        }

        public static implicit operator string(NVarChar<T> nVarChar)
        {
            return nVarChar.Value;
        }

        public override string ToString()
        {
            return Value;
        }
    }

    public interface ILength {}

    public class L15 : ILength { }

    public class L4000 : ILength { }

    public class L25 : ILength { }
}